<!-- vue3 选项式编程风格 -->
<script>
import {version} from 'vue'

export default {
  data() {
    return {
      message: 'hello world',
      version,
      count: 0,
    }
  },
  methods: {
    add() {
      this.count+=2
    }
  }
}
</script>
<template>
  <button @click="add">count - add+=2</button>&nbsp;
  <button @click="count++">show -- {{ count }}</button>
  <br>
  {{ message }} -- {{ version }}
</template>
